package br.ufrpe.bsi.pvs.util;

import static java.lang.System.err;

/** commom utilities */
public class Util {

	public static void waitASecond() {
		waitSeconds(1);
	}

	public static void waitAMinute() {
		waitSeconds(60);
	}
	
	public static void waitSeconds(int seconds) {
		waitMillisseconds(seconds * 1000);
	}

	public static void waitMillisseconds(int ms) {
		try {
			Thread.sleep(ms);
		} catch (Exception e) {
			err.println("[INTERRUPT ERROR] Problems in interrupt thread: " + e);
		}
	}

}
